package com.ruoyi.core.domain;

import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 产品列表对象 product
 * 
 * @author gwl
 * @date 2020-08-07
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long productId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 产品规格 */
    @Excel(name = "产品规格")
    private String productSpecs;

    /** 商品金额 */
    @Excel(name = "商品金额")
    private Double productPrice;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createdBy;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private Long lastUpdatedBy;


    /** 最后更新时间 */
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdatedDate;

    /** 是否删除0否1是 */
    @Excel(name = "是否删除0否1是")
    private Long isDeleted;

    /** 图片 */
    @Excel(name = "图片")
    private String imgUrl;

    /** 商品详情 */
    private String descn;


    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductSpecs(String productSpecs) 
    {
        this.productSpecs = productSpecs;
    }

    public String getProductSpecs()
    {
        return productSpecs;
    }
    public void setProductPrice(Double productPrice)
    {
        this.productPrice = productPrice;
    }

    public Double getProductPrice()
    {
        return productPrice;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }
    public void setLastUpdatedBy(Long lastUpdatedBy) 
    {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Long getLastUpdatedBy() 
    {
        return lastUpdatedBy;
    }
    public void setLastUpdatedDate(Date lastUpdatedDate) 
    {
        this.lastUpdatedDate = lastUpdatedDate;
    }

    public Date getLastUpdatedDate() 
    {
        return lastUpdatedDate;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setDescn(String descn) 
    {
        this.descn = descn;
    }

    public String getDescn() 
    {
        return descn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("productName", getProductName())
            .append("productSpecs", getProductSpecs())
            .append("productPrice", getProductPrice())
            .append("createdBy", getCreatedBy())
            .append("createdDate", getCreatedDate())
            .append("lastUpdatedBy", getLastUpdatedBy())
            .append("lastUpdatedDate", getLastUpdatedDate())
            .append("isDeleted", getIsDeleted())
            .append("imgUrl", getImgUrl())
            .append("descn", getDescn())
            .toString();
    }
}
